Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hello_watchdog to detect reboot only by watchdog #484

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CorentinLemaitre
Copy link

Hello,

I have changed the hello_watchdog.c example to detect only reboot caused by watchdog.

I have used the original example program and there was a wrong detection of watchdog caused reboot. For example, when a program was load on the RP2040 through uf2 file, then the RP2040 restart and the result of watchdog_caused_reboot() is true.

I have changed it to watchdog_enable_caused_reboot() cause based on the documentation found here.

I have tested it on my own project, the detection was fine without detection of reboot caused by program upload, that is why i do a pull request to help others to use watchdog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant